package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;
import java.util.List;

/**
 * @Author liub
 * @Date 2019/11/20 9:37
 * @Version 1.0
 */
public class MatVer extends BasePojo {
    /**
     * 物料版本id
     */
    private Integer matVerId;
    /**
     * 物料id
     */
    private Integer matId;
    /**
     * 物料版本编码
     */
    private String matVerCode;
    /**
     * 物料版本名称
     */
    private String matVerName;
    /**
     * 默认版本
     */
    private Integer defaultVer;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    /**
     * 说明
     */
    private String remark;
    /**
     * 状态
     */
    private Integer dataState;


   /**
    * @Author 熊冰  数据状态翻译 1 启用 2 删除 3 停用
    * @Date 2019/12/23 15:45
    */
    private String dataStateName;
/**
 * @Author 熊冰 工序流程集合
 * @Date 2019/11/25 15:17
 */
    private  List<MatFlow> matFlowList;
/**
 * @Author 熊冰 维修流程集合
 * @Date 2019/11/25 15:17
 */
    private  List<MatRepair> matRepairList;


    public List<MatRepair> getMatRepairList() {
        return matRepairList;
    }

    public void setMatRepairList(List<MatRepair> matRepairList) {
        this.matRepairList = matRepairList;
    }

    public List<MatFlow> getMatFlowList() {
        return matFlowList;
    }

    public void setMatFlowList(List<MatFlow> matFlowList) {
        this.matFlowList = matFlowList;
    }

    public Integer getMatVerId() {
        return matVerId;
    }

    public void setMatVerId(Integer matVerId) {
        this.matVerId = matVerId;
    }

    public Integer getMatId() {
        return matId;
    }

    public void setMatId(Integer matId) {
        this.matId = matId;
    }

    public String getMatVerCode() {
        return matVerCode;
    }

    public void setMatVerCode(String matVerCode) {
        this.matVerCode = matVerCode == null ? null : matVerCode.trim().replace(" ","");
    }

    public String getMatVerName() {
        return matVerName;
    }

    public void setMatVerName(String matVerName) {
        this.matVerName = matVerName == null ? null : matVerName.trim().replace(" ","");
    }

    public Integer getDefaultVer() {
        return defaultVer;
    }

    public void setDefaultVer(Integer defaultVer) {
        this.defaultVer = defaultVer;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }

    public String getDataStateName() {
        return dataStateName;
    }

    public void setDataStateName(String dataStateName) {
        this.dataStateName = dataStateName;
    }
}